#ifndef CONTROL_H
#define CONTROL_H

#include <QObject>
#include <QProcess>

class Control : public QObject
{
    Q_OBJECT
public:
    Control(QObject *parent = nullptr);
    ~Control();

    void startServer();
    void startClient(QString address);

Q_SIGNALS:
    void sigServerState(bool);
    void sigClientState(bool);
private Q_SLOTS:

private:
    QProcess *m_process = nullptr;
    bool m_isServer = true;
};

#endif // CONTROL_H